package com.mrtan.mapper;

import com.mrtan.bean.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
* @author Mr.Tan
* @description 针对表【role(角色
)】的数据库操作Mapper
* @createDate 2023-12-04 11:12:04
* @Entity com.mrtan.bean.Role
*/
public interface RoleMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    List<Role> selectAll(@Param("name")String name, @Param("code")String code);
    void deleteByIds(Integer[] ids);
    Role selectByCode(String code);

}
